import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.Component;
import javax.swing.Box;
import javax.swing.JTextArea;
import javax.swing.JButton;



public class NewPatientGUI extends JPanel {
    private JTextField textField;
    private JTextField textField_1;
    private JTextField textField_2;
    private JTextField textField_3;
    private JTextField textField_4;
    private JTextField textField_5;
    private JTextField textField_6;
    private JTextField textField_7;
    private JTextField textField_8;
    public NewPatientGUI() {
        setLayout(null);
        
        JLabel lblName = new JLabel("Name");
        lblName.setBounds(12, 8, 27, 14);
        add(lblName);
        
        textField = new JTextField();
        textField.setBounds(64, 5, 86, 20);
        add(textField);
        textField.setColumns(10);
        
        JLabel lblAddress = new JLabel("Address");
        lblAddress.setBounds(160, 8, 39, 14);
        add(lblAddress);
        
        textField_1 = new JTextField();
        textField_1.setBounds(204, 5, 86, 20);
        add(textField_1);
        textField_1.setColumns(10);
        
        JLabel lblNewLabel = new JLabel("Phone");
        lblNewLabel.setBounds(9, 33, 30, 14);
        add(lblNewLabel);
        
        textField_2 = new JTextField();
        textField_2.setBounds(64, 30, 86, 20);
        add(textField_2);
        textField_2.setColumns(10);
        
        JLabel lblCell = new JLabel("Cell");
        lblCell.setBounds(160, 33, 17, 14);
        add(lblCell);
        
        textField_3 = new JTextField();
        textField_3.setBounds(204, 30, 86, 20);
        add(textField_3);
        textField_3.setColumns(10);
        
        JLabel lblEmail = new JLabel("Email");
        lblEmail.setBounds(15, 58, 24, 14);
        add(lblEmail);
        
        textField_4 = new JTextField();
        textField_4.setBounds(64, 55, 86, 20);
        add(textField_4);
        textField_4.setColumns(10);
        
        JLabel lblNewLabel_1 = new JLabel("Gender");
        lblNewLabel_1.setBounds(160, 58, 35, 14);
        add(lblNewLabel_1);
        
        textField_5 = new JTextField();
        textField_5.setBounds(204, 55, 86, 20);
        add(textField_5);
        textField_5.setColumns(10);
        
        JLabel lblNewLabel_2 = new JLabel("Pharmacy");
        lblNewLabel_2.setBounds(10, 83, 47, 14);
        add(lblNewLabel_2);
        
        textField_6 = new JTextField();
        textField_6.setBounds(62, 80, 86, 20);
        add(textField_6);
        textField_6.setColumns(10);
        
        JLabel lblInsurance = new JLabel("Insurance");
        lblInsurance.setBounds(153, 83, 48, 14);
        add(lblInsurance);
        
        textField_7 = new JTextField();
        textField_7.setBounds(206, 80, 86, 20);
        add(textField_7);
        textField_7.setColumns(10);
        
        JLabel lblAllergies = new JLabel("Allergies");
        lblAllergies.setBounds(12, 110, 40, 14);
        add(lblAllergies);
        
        JTextArea textArea = new JTextArea();
        textArea.setBounds(51, 105, 244, 58);
        textArea.setRows(3);
        textArea.setColumns(30);
        add(textArea);
        
        JLabel lblRole = new JLabel("Role");
        lblRole.setBounds(95, 171, 21, 14);
        add(lblRole);
        
        textField_8 = new JTextField();
        textField_8.setBounds(121, 168, 86, 20);
        add(textField_8);
        textField_8.setColumns(10);
        
        JButton btnCreate = new JButton("Create");
        btnCreate.setBounds(10, 251, 89, 23);
        add(btnCreate);
        
        JButton btnCancel = new JButton("Cancel");
        btnCancel.setBounds(201, 251, 89, 23);
        add(btnCancel);
    }
}
